//
//  NUserModel.h
//  nncloud
//
//  Created by 朵 on 2018/9/23.
//  Copyright © 2018年 youedata. All rights reserved.

// 企业端和政府端的登录类型不一样 1，2 但是返回的数据结构都是一样的


#import <Foundation/Foundation.h>
#import "NSDictionary+DeleteNull.h"
#import "CommonModel.h"
///用户信息的获取可以通过 NSUserDefaults 获取，也可以通过这个单例的属性值直接获取

@interface NUserModel : NSObject

@property (nonatomic,copy)NSString *userInfoId;//用户id
@property (nonatomic,copy)NSString *userInfoName;
@property (nonatomic,copy)NSString *userInfoCreateTime;
@property (nonatomic,copy)NSString *userInfoSalt;
@property (nonatomic,copy)NSString *userInfoStatus;
@property (nonatomic,copy)NSString *userInfoNickname;
@property (nonatomic,copy)NSString *userInfoUpdateTime;
@property (nonatomic,copy)NSString *userInfoNamePwd;
@property (nonatomic,copy)NSString *userInfoType;//用户类型 0个人   1企业  2政府
@property (nonatomic,copy)NSString *userInfoCreateBy;
@property (nonatomic,copy)NSString *userInfoUpdateBy;
@property (nonatomic,copy)NSString *userInfoUrl;

@property (nonatomic,copy)NSString *userInfoCertificationType;//认证类型  0企业   1个人
@property (nonatomic,copy)NSString *userInfoCertificationStatus;//认证状态  0审核中   1已认证  2未通过   3未认证
@property (nonatomic,copy)NSString *userInfoLatestTime;
@property (nonatomic,copy)NSString *userInfoTel;




@property (nonatomic,assign)BOOL isLogin;
@property (nonatomic,assign)BOOL isChangeRole;


///信息保存和更新接口的请求方式后台专门做了一些修改，所以对这一个接口进行标记
@property (nonatomic,assign)BOOL isDifferentRequest;


///标记是工业数据查询还是财务数据查询
@property (nonatomic,assign)BOOL isIndustryDataInq;

///标记是全量查询还是单个查询
@property (nonatomic,assign)BOOL isAllData;


///标记是工业还是财务报表
@property (nonatomic,copy)NSString *isIndustryOrFinance;


///标记是工业报表
@property (nonatomic,assign)BOOL isIndustryTable;

//刷新内容页面
@property (nonatomic,assign)BOOL isRefreshContentvView;

///问题反馈列表索引
@property (nonatomic,assign)NSInteger index;


///因为需要从第一个页面传到第三个页面所以弄了一个全局的
@property (nonatomic,copy)NSString *shenbaoId;

///未读消息数
@property (nonatomic,copy)NSString *badgeCount;


////当前线名
@property (nonatomic,copy)NSString *currentLine;

////当前站名
@property (nonatomic,copy)NSString *currentStation;


//点击了编辑按钮
@property (nonatomic,assign)BOOL isClickedEdit;


////保存当前修改的一条数据
@property (nonatomic,copy)NSString *currentChange;

////选择当前的站
@property (nonatomic,assign)BOOL currentSelect;

///当前所选的器材类型 eg:无极继电器
@property (nonatomic,copy)NSString *relayName;

///当前所选的设备
@property (nonatomic,strong)CommonModel *currentModel;

///修改信息时候需要以
@property (nonatomic,assign)BOOL isJson;

///区分三种不同的设备类型  继电器  转辙机  综合器材
@property (nonatomic,copy)NSString *equipType;

///打印标记
@property (nonatomic,copy)NSString *printType;

///转辙机的具体种类名称  根据这个去获取对应种类下的型号

@property (nonatomic,copy)NSString *switchName;

///综合器材种类名称  根据这个去获取对应种类下的型号

@property (nonatomic,copy)NSString *CMName;

///驼峰器材种类名称  根据这个去获取对应种类下的型号
@property (nonatomic,copy)NSString *camelName;

///修改完成标记 提交更新
@property (nonatomic,assign)BOOL commitUpdate;

///筛选 标记
@property (nonatomic,assign)BOOL isFilter;

///筛选 标记 字典转成的json 串
@property (nonatomic,copy)NSString *filterJsonString;



///工作流页面扫描后获取段编号后请求数据拿到的type 即当前设备的类型
@property (nonatomic,strong)NSNumber *scanEquipType;

///工作流页面扫码获取的段编号
@property (nonatomic,copy)NSString *scanBrokenNumber;
///标记是扫码进来的
@property (nonatomic,assign)BOOL comeinWithScan;

///
+(instancetype)shareInstance;

/**
 根据数据保存用户信息
 */
+ (void)saveUserInfoWithDic:(NSDictionary *)dic;

/**
 清空数据
 */
+ (void)cleanUserInfo;





@end
